//
//  ZJNotMineViewController.m
//  ZiJinLian
//
//  Created by lzy on 2017/3/16.
//  Copyright © 2017年 lzy. All rights reserved.
//

#import "ZJNotMineViewController.h"
#import "ZJLoginViewController.h"
#import "ZJSecuritycodeViewController.h"
@interface ZJNotMineViewController ()

@end

@implementation ZJNotMineViewController



-(void)createView{
    [self initTitle:MyString(@"注册")];
    _notMineView=[[ZJNotMineView alloc]initWithFrame:self.view.frame];
    [self.view addSubview:self.notMineView];
    self.notMineView.nameLab.text=self.curNickName;
    NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:self.curheadurlStr]];
    //然后就是添加照片语句，这次不是`imageWithName`了，是 imageWithData。
    UIImage *image = [UIImage imageWithData:data];
    [self.notMineView.headBtn setBackgroundImage:image forState:UIControlStateNormal];
}

-(void)doOpeartion{
    [self.notMineView.goLogBtn addTarget:self action:@selector(goLogBtnClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.notMineView.goregister addTarget:self action:@selector(goregisterBtnClick:) forControlEvents:UIControlEventTouchUpInside];

}

-(void)goLogBtnClick:(UIButton *)btn{
    [self.delegate viewLogin];
    [self dismissViewControllerAnimated:YES completion:nil];
    
    
}
-(void)goregisterBtnClick:(UIButton *)btn
{
    [self.delegate viewDismiss];
    [self dismissViewControllerAnimated:YES completion:nil];
    
}

@end
